www.gusucode.com > 网域标准通用企业自助建站系统正式版 2009 > 网域标准通用企业自助建站系统正式版 2009.18/网域公司企业网站管理系统ACCESS和SQL正式版/网域公司企业网站管理系统SQL正式版/EnOrdercheck.asp
<!--#include file="inc/conn.asp" --> <% Sub PutToShopBag( Product_Id, ProductList ) If Len(ProductList) = 0 Then ProductList = "'" & Product_Id & "'" ElseIf InStr( ProductList, Product_Id ) <= 0 Then ProductList = ProductList & ", '" & Product_Id & "'" End If End Sub %> <html> <head> <title>Shopping cart</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <meta name="Author" content="网域高科(www.wygk.cn),企业网站,企业网站管理系统,网域高科公司企业网站管理系统中英繁SQL版,企业公司网站系统SQL版,企业网站管理系统,企业网站源码"> <meta name="Contact" content="网域高科(www.wygk.cn),企业网站,企业网站管理系统,网域高科公司企业网站管理系统中英繁SQL版,企业公司网站系统SQL版,企业网站管理系统,企业网站源码"> <meta name="Copyright" content="网域高科(www.wygk.cn),企业网站,企业网站管理系统,网域高科公司企业网站管理系统中英繁SQL版,企业公司网站系统SQL版,企业网站管理系统,企业网站源码"> <meta name="Keywords" Content="网域高科(www.wygk.cn),企业网站,企业网站管理系统,网域高科公司企业网站管理系统中英繁SQL版,企业公司网站系统SQL版,企业网站管理系统,企业网站源码"> <meta name="Description" Content="网域高科(www.wygk.cn),企业网站,企业网站管理系统,网域高科公司企业网站管理系统中英繁SQL版,企业公司网站系统SQL版,企业网站管理系统,企业网站源码"> <link href="mt_style.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onLoad="self.focus();"> <% '如果购买车为空,转入提示界面 ProductList = Session("ProductList") If Len(ProductList) = 0 Then Response.write "<table height=100% width=100% ><tr><td align=center>Hello! Now your shopping cart is empty, that <a href='javascript:window.close()'><b>Keep on shopping</b></a>?</td></tr></table>" response.end end if '判断是否支付,如支付转到支付页面,并生成在线支付所需数据参数 if request("payment")="Beginning pay" then response.redirect "Enpayment.asp" end if '取消要购买物品的处理 Quatityt="" subslist="" If Request("cmdShow") = "Yes" Then ProductList = "" Products = Split(Request("Product_Id"), ", ") For I=0 To UBound(Products) PutToShopBag Products(I), ProductList Next Session("ProductList") = ProductList End If if productlist<>"" then Set rsc=Server.CreateObject("ADODB.RecordSet") sqlc="select * from Product where Product_Id in ("&productlist&") order by Product_Id" rsc.open sqlc,conn,1,1 else Response.write "<table height=100% width=100% ><tr><td align=center>Hello! Now your shopping cart is empty, is need <a href='../helpcenter.asp' target='blank_'><b>Help</b></a>?or <a href='javascript:window.close()'><b>Keep on shopping</b></a>?</td></tr></table>" response.end end if %> <table width="649" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="649" height="47" colspan="4"><font color=B0266D> Goods detailed list that you order as follows: </font></td> </tr> <tr> <td colspan="4" height="88"> <table border="0" cellspacing="1" cellpadding="0" align="center" width="619" bgcolor="B0266D"> <form action="Enordercheck.asp" method="POST" name="check"> <tr bgcolor="#FFFFFF"> <td width="67" height="25"> <div align="center">Cancel</div> </td> <td width="343"> <div align="center">Goods name</div> </td> <td width="58"> <div align="center">Quantity</div> </td> <td width="65"> <div align="center">Unit price</div> </td> <td width="80"> <div align="center">Amount</div> </td> </tr> <% Sum = 0 While Not rsc.EOF Quatity = CInt( Request( "Q_" & rsc("Product_Id")) ) If Quatity <= 0 Then Quatity = CInt( Session(rsc("Product_Id")) ) If Quatity <= 0 Then Quatity = 1 End If if len(Quatityt)=0 then Quatityt=Quatity else Quatityt=Quatityt&","&Quatity end if if len(subslist)=0 then subslist=rsc("Title") else subslist=subslist&","&rsc("Title") end if Session(rsc("Product_Id")) = Quatity Sum = Sum + csng(rsc("Price")) * Quatity Sum=FormatNumber(Sum,1) %> <tr bgcolor="#FFFFFF"> <td width="67" height="20" align="center"> <input type="CheckBox" name="Product_Id" value="<%=rsc("Product_Id")%>" Checked> <input type="hidden" name="subs" value="<%=rsc("EnTitle")%>"> </td> <td width="343"> <font color="B0266D"><%=rsc("EnTitle")%></font></td> <td width="58" align="center"> <input type="Text" name="<%="Q_" & rsc("Product_Id")%>" value="<%=Quatity%>" size="2" class="form"> </td> <td width="65" align=center><font color="B0266D"><%=FormatNumber(rsc("Price"),1)%></font></td> <td width="80" align=center><font color="B0266D"><%=FormatNumber(csng(rsc("Price"))*Quatity,1)%></font></td> </tr> <% rsc.MoveNext Wend rsc.close set rsc=nothing %> <tr bgcolor="#FFFFFF"> <td colspan="2" height="35" align="center"> <input type="submit" name="order" value="Renew quantity"> <input type="submit" name="payment" value="Beginning pay"> <input type="button" value="Keep on shopping" language=javascript onClick="javascript:window.close()" name="button"> <input type="hidden" name="cmdShow" value="Yes"> </td> <td colspan="3" align="right"> <b> <font color="B0266D">Total price = <%=Sum%> </font></b> </td> </tr> </form> <tr><td colspan="5" bgcolor="#ffffff"><br> <UL> <LI>After fill in quantity that you need, click “renew quantity” <LI>If want to cancel the some goods, cancel the pick symbol, and click “renew quantity” </UL></td></tr> </table> </td> </tr> </table> </body> </html>